-- GENERATED SPELL FOR [Rock Borer] --


function spell0_11787(pUnit, Event) --@Tunneler Acid,n/a--
pUnit:FullCastSpellOnTarget(14120,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11787', 30323, 1)
end

function Sorts_11787(pUnit, Event)
local choix_sorts_11787 = math.random(0, 0)
if choix_sorts_11787 == 0 then
pUnit:RegisterEvent('spell0_11787', 1, 1)
end
end

function mob11787_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11787', math.random(1500, 3000), 1)
end

function mob11787_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11787_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11787_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11787, 1, 'mob11787_Action')
RegisterUnitEvent(11787, 2, 'mob11787_Leave')
RegisterUnitEvent(11787, 3, 'mob11787_Kill')
RegisterUnitEvent(11787, 4, 'mob11787_Die')
